
#ifndef CAMCAPTURE_H
#define CAMCAPTURE_H

#include <QtGui/QMainWindow>
#include <QtGui/QPainter>
#include <QtCore/QPoint>
#include <opencv2/core/core.hpp>
#include "ui_camcapture.h"

class camCapture : public QWidget,public Ui::camCaptureClass
{
	Q_OBJECT

public:
	camCapture(QWidget *parent = 0, Qt::WFlags flags = Qt::Window);
	~camCapture();
	void setFrame(const cv::Mat *frames);
protected:
	void paintEvent(QPaintEvent * e);
private:
	Ui::camCaptureClass ui;
	cv::Mat frame;
	QImage *image;
public slots:
	void receiveFrame(cv::Mat * f);
};

#endif // CAMCAPTURE_H
